package com.slingshot.identitylibrary.idinfo.presenter

import com.slingshot.identitylibrary.viewmodel.ViewModel
import io.reactivex.Observable

internal class IdInforPresenter {

    private lateinit var viewModel: ViewModel

    init {
        init()
    }

    private fun init() {
        viewModel = ViewModel()
    }

    fun extractIdCardFace(appId: String, appSecret: String, imageBase64: String): Observable<String> {
        return viewModel.extractIdCardFace(appId, appSecret, imageBase64)
    }

    fun extractIdCardNationalEmblem(appId: String, appSecret: String, imageBase64: String): Observable<String> {
        return viewModel.extractIdCardNationalEmblem(appId, appSecret, imageBase64)
    }

    fun faceDetect(appId: String, appSecret: String, imageBase64: String,imageBase64_ID: String): Observable<String> {
        return viewModel.faceDetect(appId, appSecret, imageBase64,imageBase64_ID)
    }
    fun faceDetect(appId: String, appSecret: String, imageBase64: String): Observable<String> {
        return viewModel.faceDetect(appId, appSecret, imageBase64)
    }
}